<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE>
<html>
<head>
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/layout.css" />
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/module_public.css" />
  <script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Js/employees.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Js/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
  <div class="module_public">
     <div class="module_public_content">
        <h1> >> 管理员工 <a href="__ACTION__">【刷新】</a></font></h1>
     </div>
   <div class="module_public_main">
      <table>
      <form action="__URL__/employeesInfo/action/search_name" method="post">
        <tr>
          <td align="center">搜索员工:</td>
          <td colspan="6"><input type="text" name="u_name" class="_input" value="请输入要查询的员工姓名" style="color:#999;padding-left:5px;" id="search_name"/>&nbsp;<input type="submit" class="_button" value="查找" /></td>
        </tr>
        </form>
        <tr>
          <td align="center">编号</td>
          <td align="center">员工姓名</td>
          <td align="center">性别</td>
          <td align="center">年龄</td>
          <td align="center">所属部门</td>
          <td align="center">职位名称</td>
          <td align="center">操作</td>
        </tr>
        <?php if(is_array($e_info)): $k = 0; $__LIST__ = $e_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($k % 2 );++$k;?><tr>
          <td align="center"><?php echo ($k); ?></td>
          <td align="center"><?php echo ($v["u_name"]); ?></td>
          <?php if($v["u_sex"] == '1'): ?><td align="center">男</td>
          <?php else: ?>
          <td align="center">女</td><?php endif; ?>
          <td align="center"><?php echo ($v["u_age"]); ?></td>
          <td align="center"><?php echo ($v["d_name"]); ?></td>
          <td align="center"><?php echo ($v["p_name"]); ?></td>
          <td align="center">
            <?php if($v["u_resume_url"] == ''): ?><a href="#"><font color=red>本员工未上传简历</font></a> |   
            <?php else: ?>
            <a href="__PUBLIC__/Resume/<?php echo ($v["u_resume_url"]); ?>">查看员工个人简历</a> |<?php endif; ?>         
            <?php if($v["u_enable"] == '1'): ?><a href="__URL__/employees_status/action/no/u_id/<?php echo ($v["u_id"]); ?>"><font color=red>禁止员工登入OA</font></a>
            <?php else: ?>
            <a href="__URL__/employees_status/action/yes/u_id/<?php echo ($v["u_id"]); ?>"><font color=green>允许员工登入OA</font></a><?php endif; ?>
          </td> 
        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
        <tr>
          <td colspan="7" align="right"><?php echo ($fpage); ?></td>
        </tr>
      </table> 
   </div>
  </div>
</body>
</html>